package five_Net;

import java.io.IOException;
import java.net.*;
import java.util.Scanner;

public class Sent {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds = new DatagramSocket();

        Scanner sc = new Scanner(System.in);
        String s;
        while (true) {
            s = sc.nextLine();
            if ("886".equals(s)) {
                break;
            }
            byte[] bys = s.getBytes();
            DatagramPacket dp = new DatagramPacket(bys, bys.length, InetAddress.getByName("192.168.43.125"), 10011);
            ds.send(dp);
        }
        ds.close();
    }
}
